﻿namespace Test30.Engine
{
    public class DetectItemsAction : Action
    {
        public DetectItemsAction(Entity entity)
            : base(entity)
        {
        }

        protected override ActionResult OnProcess()
        {
            foreach (Item item in Dungeon.Items)
            {
                Dungeon.SetTileExplored(item.Position);
            }

            return ActionResult.Done;
        }
    }
}
